#include <stdio.h>
#include <string.h>
#include <ctype.h>

#define STR_SIZE 200

int main (int argc, const char * argv[]) {
    char buffer[STR_SIZE+5];
	int length;
	int i;
	while (fgets(buffer, sizeof(buffer), stdin),!strcmp(buffer, "START\n")) {
		fgets(buffer, sizeof(buffer), stdin);
		length = strlen(buffer);
		for (i=0; i<length; i++)
			if (isupper(buffer[i]))
				buffer[i] = 'A' + (buffer[i]-'A'+26-5)%26;
		fputs(buffer,stdout);
		fgets(buffer, sizeof(buffer), stdin);
	}
    return 0;
}
